package com.xingchen.springboot3.service;

import com.xingchen.springboot3.common.bean.Result;
import com.xingchen.springboot3.pojo.dto.PwdDto;
import com.xingchen.springboot3.pojo.dto.UserDto;
import com.xingchen.springboot3.pojo.vo.UserVo;
import jakarta.validation.Valid;

/**
 *
 * @author weijingchen
 * @DateTime 2025-09-24
 */
public interface UserService {

    Result register(UserDto dto);

    Result login(UserDto dto);

    UserVo getById(Integer userId);

    Result update(@Valid UserDto dto);

    Result updateAvatar(String avatar);

    Result updatePWD(@Valid PwdDto dto);
}
